package com.aike.dao;

import com.aike.pojo.*;
import com.sun.tracing.dtrace.ProviderAttributes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlaceMapper {


    //增加房子
    int addHouse(@Param("houseName") String houseName, @Param("type") Integer type, @Param("floorNum") Integer floorNum);

//    增加房间
    int addRoom(@Param("houseId") Integer houseId, @Param("roomName") String roomName,@Param("floorPos") Integer floorPos, @Param("colNum") Integer colNum, @Param("rowNum") Integer rowNum, @Param("seatNum") Integer seatNum);

//    根据位置id和房间号查找roomId
    int selectRoomIdByHouseIdAndRoomName(@Param("houseId") Integer houseId, @Param("roomName") String roomName);

//    增加位置
    int addSeat(@Param("list") List<Seat> list);

//    查找房子
    List<SearchHouse> selectSearchHouse(Integer type);

//    查找房间
    List<SearchFloor> selectSearchFloor();

//    查找位置
    List<SearchRoom> selectSearchRoom();

}
